<template>
  <el-table
    :data="formDate"
    height=1000px
    style="width: 100%">
    <el-table-column
      prop="a_title"
      label="文章标题"
      width="180">
    </el-table-column>

    <el-table-column
      prop="a_desc"
      label="文章描述"
      width="180">
    </el-table-column>
     <el-table-column
      prop="a_cate"
      label="文章类别"
      width="180">
    </el-table-column>
    
    <el-table-column
      label="摘要"
      >
      <template slot-scope="scope">
        <i class="el-icon-time"></i>
        <span style="margin-left: 10px">{{ scope.row.a_content }}</span>
      </template>
    </el-table-column>
     <el-table-column
      label="日期"
      >
      <template slot-scope="scope">
   
        <span style="margin-left: 10px">{{ scope.row.a_createat | moment}}</span>
      </template>
    </el-table-column>
    
  </el-table>

</template>

<script>
export default {
    data(){
        return{
            formDate:[]
        }
    },
    created(){
        this.getUserinfo()
    },
    methods:{
        getUserinfo(){
            this.$axios.get("/art/all").then(res=>{
                this.formDate = res.data
               
            })
        },
    }
}
</script>

<style>

</style>